package java44th.group.controller.wx.collect;

import java44th.group.bean.admin.vo.BaseRespVo;

import java44th.group.bean.common.CommonData;
import java44th.group.bean.po.MarketUser;
import java44th.group.bean.wx.bo.collect.ListBo;
import java44th.group.bean.wx.vo.collect.ListVo;
import java44th.group.service.wx.collect.WxCollectService;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @Aurhor: 徐云飞
 * @DATE: 2022/10/14 10:24
 * @Description:
 * @Version 1.0
 */
@RestController
@RequestMapping("wx/collect")
public class WxCollectController {
    @Autowired
    WxCollectService collectService;


    @GetMapping("list")
    public BaseRespVo list(ListBo listBo) {


        CommonData commonData = collectService.list(listBo);


        return BaseRespVo.ok(commonData);
    }

    @PostMapping("addordelete")
    public BaseRespVo addordelete(@RequestBody Map map) {


        collectService.addordelete(map);


        return BaseRespVo.ok();
    }


}
